import ajax from './baseAjax';

// let login = function (requestParams,handler) {
//   ajax.postParams(':8011/auth/staff/login',requestParams,handler);
// };
//
// let register = function (requestParams,handler) {
//   ajax.postParams(':8011/auth/staff/register',requestParams,handler);
// };

export default {
  login: function (requestParams,handler) {
    ajax.postParams(':8011/auth/user/login',requestParams,handler);
  },
  register: function (requestParams,handler) {
    ajax.postParams(':8011/auth/user/register',requestParams,handler);
  }
}
